package com.cos.demo2.entity;

/**
 * @author: COS
 * @time: 2021/5/17 9:45
 * @description:
 */
public class Student {
    private Integer id;
    private String name;
    private String sex;
    private Integer age;
    private Address adds;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Address getAdds() {
        return adds;
    }

    public void setAdds(Address adds) {
        this.adds = adds;
    }

    public Student() {
    }

   /* @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                '}';
    }
*/
    public Student(Integer id, String name, String sex, Integer age) {
        this.id = id;
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
}
